page.pageInit = function(){
  $("#startFLowBtn").bind("click",function(){
	  $('#startForm').validate();
		var validate = $('#startForm').valid();
		if (validate) {
			var actKey = $("#actKey").val();
			openIframeWindow("用户选择",contextPath+"/act/common/userAndActView.htm?actKey="+actKey,null,function(act,userIds){
				 $("#userids").val(userIds);
				 $("#deployId").val(act.deploymentId);
				 $("#defId").val(act.defid);
				 var data = $('#startForm').serialize() // 要提交的表单,必须使用name属性
					$.dataPost(contextPath + "/act/deal/startFlow.htm", data,function(result) {
						if (result.success) {
							if (callback)callback();
						} else {
							layer.msg(result.msg);
						}
					});
				 
			  });
			
		}
  });
}

